<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
    <title>Python Flask</title>
</head>
<body>
<div class="out">
    <form name="btn">
        <button type="button" class="btn" onclick="submitFormTo('/project01')">温度转化器</button>
        <br><br>
        <button type="button" class="btn" onclick="submitFormTo('/project02')">简易计算器</button>
    </form>
</div>
</body>
<script>
    //url提交器
    function submitFormTo(url) {
    document.btn.action = 'http://localhost:5000'+url;
    document.btn.submit();
}
</script>
</html>